import request from "@/utils/request";

// 查询家庭收支列表
export function listHiae(query) {
  return request({
    url: "/system/hiae/list",
    method: "get",
    params: query
  });
}

// 查询家庭收支详细
export function getHiae(id) {
  return request({
    url: "/system/hiae/" + id,
    method: "get"
  });
}

// 新增家庭收支
export function addHiae(data) {
  return request({
    url: "/system/hiae",
    method: "post",
    data: data
  });
}

// 修改家庭收支
export function updateHiae(data) {
  return request({
    url: "/system/hiae",
    method: "put",
    data: data
  });
}

// 删除家庭收支
export function delHiae(id) {
  return request({
    url: "/system/hiae/" + id,
    method: "delete"
  });
}

// 导出家庭收支
export function exportHiae(query) {
  return request({
    url: "/system/hiae/export",
    method: "get",
    params: query
  });
}
